<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
<h:head>
    <title>CarView</title>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
    <h:outputStylesheet library="css" name="tableCar-style.css"/>
    <f:view locale="#{userBean.locale}"/>
</h:head>
<h:body>
    <ui:decorate template="/sample.xhtml">
        <ui:define name="body">

            <div class="text">

                <div class="hovergallery">
                    <h:graphicImage library="image" name="/m5_e60/bmw_m5_e60_front_blue.jpg" width="300" height="300"/>
                    <h:graphicImage library="image" name="/m5_e60/bmw_m5_e60_4ebe96e6dad77.jpg" width="300" height="300"/>
                </div>
            </div>


            <table class="simple-little-table" cellspacing='0'>
                <tr>
                    <th>ID: #{carViewBean.car.id} </th>
                    <th>RU</th>
                    <th>EN</th>
                </tr>
                <!-- Table Header -->
                <tr>
                    <td >Тип транспорта</td>
                    <td>#{carViewBean.car.transport.spr_transportType.name_ru}</td>
                    <td>#{carViewBean.car.transport.spr_transportType.name_en}</td>
                </tr>
                <!-- Darker Table Row -->
                <tr>
                    <td>Бренд</td>
                    <td>#{carViewBean.car.transport.spr_brand.name_ru}</td>
                    <td>#{carViewBean.car.transport.spr_brand.name_en}</td>
                </tr>
                <!-- Table Row -->

                <tr>
                    <td>Модель</td>
                    <td>#{carViewBean.car.spr_model.name_ru}</td>
                    <td>#{carViewBean.car.spr_model.name_en}</td>
                </tr>
                <!-- Darker Table Row -->

                <tr>
                    <td>Год производства</td>
                    <td>#{carViewBean.car.transport.issue_date}</td>
                    <td>-</td>
                </tr>
                <!-- Darker Table Row -->
                <tr>
                    <td>Состояние</td>
                    <td>#{carViewBean.car.transport.spr_condition.name_ru}</td>
                    <td>#{carViewBean.car.transport.spr_condition.name_en}</td>
                </tr>
                <!-- Darker Table Row -->
                <tr>
                    <td>Объем двигателя</td>
                    <td>#{carViewBean.car.capasity}</td>
                    <td>-</td>
                </tr>
                <!-- Darker Table Row -->
                <tr>
                    <td>Трансмиссия</td>
                    <td>#{carViewBean.car.spr_transmission.name_ru}</td>
                    <td>#{carViewBean.car.spr_transmission.name_en}</td>
                </tr>
                <!-- Darker Table Row -->
                <tr>
                    <td>Привод</td>
                    <td>#{carViewBean.car.spr_privod.name_ru}</td>
                    <td>#{carViewBean.car.spr_privod.name_en}</td>
                </tr>
                <!-- Darker Table Row -->
                <tr>
                    <td>Цвет</td>
                    <td>#{carViewBean.car.transport.spr_color.name_ru}</td>
                    <td>#{carViewBean.car.transport.spr_color.name_en}</td>
                </tr>
                <!-- Darker Table Row -->


                <tr>
                    <th>Цена : #{carViewBean.car.transport.price} #{carViewBean.car.transport.spr_currency.shortname_en}</th>
                </tr>
            </table>
            <h:form>
                <h:outputText value="Продавец :"/> <br/>
            </h:form>


        </ui:define>
    </ui:decorate>


</h:body>


</html>



